package semantica;

import java.util.ArrayList;

public class ListAttributeType extends TypeAttribute {
	private ArrayList<String> vals;

	public ListAttributeType(ArrayList<String> vals)
	{
		this.vals = vals;
	}
	
	public boolean validate(String val) {
		for( String s: vals)
			if( s.equals(val))
				return true;
		return false;
	}

}
